package com.zp.common.core.utils;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class DubboUtils {

    /**
     * 四舍五入保留两位小数
     * @param number
     * @return
     */
    public static Double dubboForMat(Double number) {
        return Double.valueOf(String.format("%.2f", number));
    }
}
